//============================================================================
// Copyright (C) 2010 Brett R. Jones
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#include "DtwGame.h"


//------------------------------------------------------------------------------
//=== constructor ===//
DtwStateGameScore::DtwStateGameScore()
	: m_poGameMgr(0)
{
}
//------------------------------------------------------------------------------
//=== destructor ===//
DtwStateGameScore::~DtwStateGameScore()
{
}
//------------------------------------------------------------------------------
//=== state overrides ===//
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//! startup
RCODE DtwStateGameScore::GameStateStartup( VxIrrBase * poIrrBase )
{
	m_poGameMgr = ( DtwGameMgr *)poIrrBase;
	log_msg( 0, "DtwStateGameScore::GameStateStartup:\n" );
	HighScoreViewEnd();
	return 0;
}


//------------------------------------------------------------------------------
//! shutdown
void DtwStateGameScore::GameStateShutdown( void )
{
}
//------------------------------------------------------------------------------
// update timed elements
RCODE DtwStateGameScore::GameStateUpdate( U32 u32FrameTimeMs ) 
{
	return 0;
}
//----------------------------------------------------------------------------
//! called when application is about to sleep
RCODE DtwStateGameScore::GameStateAppSleep( void )
{
	return 0;
}
//------------------------------------------------------------------------------
//! called when application is resuming from sleep.. app must reload textures etc
RCODE DtwStateGameScore::GameStateAppResume( U32 u32FrameTimeMs )
{
	return 0;
}
//----------------------------------------------------------------------------
//! do end of viewing game score
void DtwStateGameScore::HighScoreViewEnd( void )
{
	m_poGameMgr->m_poNewState = new DtwStateMenu();
}








